{extend name='admin@main'}


{block name="content"}


 <!-- <button data-modal='{:url("edit_record")}' data-rule="id#{key}" data-csrf="{:systoken('edit_record')}" class='layui-btn layui-btn-sm layui-btn-warm'>编辑</button> -->





<div class="think-box-shadow">
    <!-- {include file='device/index_search'} -->
    <table class="layui-table" lay-skin="switch">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box_record' type='checkbox'></label>
				<!-- <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button> -->
            </th>
			<!--
            <th class='list-table-sort-td'>
                <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
            </th>-->

            <th class='text-left nowrap'>维修时间</th>
            <th class='text-left nowrap'>维修原因</th>
			<th class='text-left nowrap'>更换配件</th>
			<th class='text-left nowrap'>维修费用</th>
			<th class='text-left nowrap'>备注</th>
            <th class='text-left nowrap'>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box_record" value='{$vo.id}' type='checkbox'></label>
            </td>
			<!--
            <td class='list-table-sort-td'>
                
            </td>
			-->
			<td class='text-left nowrap'>{$vo.repairtime|default='-'}</td>
            <td >{$vo.reason|default='-'}</td>
            <td >{$vo.costs|default='-'}</td>
			<td >{$vo.parts|default='-'}</td>
			<td >{$vo.remarks|default='-'}</td>


            <td class='text-left nowrap'>

                {if $vo.files !=''}
                <a href="{$vo.files}" target="new">查看附件</a>
                {/if}


            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>

{/block}
{block name='script'}
<script>
    layui.use(['layer', 'dropdown', 'element'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var dropdown = layui.dropdown;
        var element = layui.element;

    });
</script>
{/block}
